package com.darly.std.vm;

import com.darly.dlcommon.app.ActionView;
import com.darly.dlcommon.app.App;


/**
 * Description TODO:
 * Package com.darly.dlcommon.app
 * Author fronchdarly
 * Date 2021/3/17 10:26 AM
 * Where: 陕西西安
 * How: 特别一般的公司
 */
public class ActionWrapper extends App {

    public static final int TIME_COUNT = 0x0000001;
    public static final int IMAGE_EDIT = 0x0000002;
    public static final int TABLE_EDIT = 0x0000003;
    public static final int LIST_VIEW_CLICK = 0x0000007;
    public static final int COLLECTION_CLICK = 0x0000008;
    public static final int TITLE = 0x0000009;
    public static final int PROGRESS_INIT = 0x0000010;
    public static final int MAIN_PRO = 0x0000011;
    public static final int SEC_PRO = 0x0000012;

    public static final int RN_MAIN_VIEW = 0x0000013;
    public static final int MAIN_PAGE = 0x0000014;
    public static final int MAP_PAGE = 0x0000015;
    public static final int SETTING_PAGE = 0x0000016;
    public static final int OBJECT_LIST = 0x0000017;
    public static final int PAY_ENTITY = 0x0000018;
    public static final int VISIT_ENTITY = 0x0000019;
    public static final int DETAIL_ENTITY = 0x0000020;


    private ActionWrapper() {
    }

    static class ActionWrapperHolder {
        static ActionWrapper controller = new ActionWrapper();
    }

    public static ActionWrapper getInstance() {
        return ActionWrapper.ActionWrapperHolder.controller;
    }


    /**
     * 后退操作或者下个界面操作
     * @param param 参数
     * @param module 识别
     * @return 返回操作
     */
    @Override
    public ActionView getActionView(Object param, int module) {
        return new ActionViewImp(param,module);
    }

    /**
     * 其他操作
     * @param param 参数
     * @param module 识别
     * @return 返回操作
     */
    public ActionView getActionViewTag(Object param, int module){
        return new ActionViewImp(param,module);
    }
}
